<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            margin: 100px auto;
            background-color: red;
            animation: xz 2s linear infinite alternate;
        }
        @keyframes xz{
            form{
                box-shadow: 0 0 10px red;
                background-color: red;
              transform: rotate(0deg) scale(1);
            }
            to{
                box-shadow: 0 0 10px blue;
                background-color: blue;
                transform: rotate(360deg) scale(2);
            }
        }

    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>